/*
 *接口编写处...
*如果接口需要做Action的权限验证，请在Action上使用属性
*如: [ApiActionPermission("tb_project_fundingsubject_realition",Enums.ActionPermissionOptions.Search)]
 */
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.AspNetCore.Http;
using MYData.Entity.DomainModels;
using MYData.System.IServices;
using System.Net;
using MYData.Core.Utilities;

namespace MYData.System.Controllers
{
    public partial class tb_project_fundingsubject_realitionController
    {
        private readonly Itb_project_fundingsubject_realitionService _service;//访问业务代码
        private readonly IHttpContextAccessor _httpContextAccessor;

        [ActivatorUtilitiesConstructor]
        public tb_project_fundingsubject_realitionController(
            Itb_project_fundingsubject_realitionService service,
            IHttpContextAccessor httpContextAccessor
        )
        : base(service)
        {
            _service = service;
            _httpContextAccessor = httpContextAccessor;
        }

        /// <summary>
        /// 根据项目Id 获取该项目下科目报销信息
        /// MJZ 4/10/17:01
        /// </summary>
        /// <param name="projectId"></param>
        /// <returns></returns>
        [HttpGet, Route("GetFundingSubject_RelationList")]
        public IActionResult GetFundingSubject_RelationList(string projectId)
        {
            return Json(_service.GetFundingSubject_RelationList(projectId));
        }
    }
}
